package jonggyuni.basic;

public class J17_seatA implements J17_PerformanceService{
	
	private J17_PerformanceVO[] pdata = new J17_PerformanceVO[15];
	
	private int pos = -1;

	@Override
	public boolean reservation(J17_PerformanceVO p) {
		pdata[++pos] = p;
		return true;
	}

	@Override
	public String readReserve() {
		String result="";
		
		J17_PerformanceVO pvo;
		for(int i=0; i<=pos; ++i){
			pvo=pdata[i];
			result += pvo.toString()+"\n";
		}	
		return result;
	}
	
	
}
